Only write a success node when coming online, not going offline. Delete the
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Fri, 25 Nov 2005 17:12:12 +0000 (17:12 +0000)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Fri, 25 Nov 2005 17:12:12 +0000 (17:12 +0000)
commit7522af5c6ae4aa4db6ab95ac7fc7029ded4f7bae
tree6fe7cf553d6ef251ca484615195e548aa63c03ac
parent4494161ec1523f89c527162c02f7212091fdc17a
Only write a success node when coming online, not going offline.  Delete the
interface from the bridge when going offline -- the comment stating that
interfaces are auto-removed does not seem to be true, at least some of the
time.  Log failure of brctl delif and ifconfig down only at debug level, as
this script may be called more than once, depending upon the hotplug
configuration.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/examples/vif-bridge